﻿<!-- 
    Exemple : ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.fr/cpref16/html/P_System_Web_UI_WebControls_ChangePassword_NewPasswordRegularExpression.htm
-->
<%@ page language="C#"%>
<script runat="server"></script>

<html>
<head id="Head1" runat="server">
  <title>Change Password with Validation</title>
</head>
<body>
  <form id="form2" runat="server">
  <div>
    <br />
    <h1>Ne marche pas</h1>
    <br />
    User   : <font color="blue"><asp:LoginName ID="LoginName2" runat="server" /></font><br />
    Status : <asp:LoginStatus ID="LoginStatus2" runat="server" />
    <br />
    <br />
    <br />
    <asp:changepassword id="ChangePassword2" runat="server" BorderColor="AliceBlue" BorderWidth="5" BorderStyle="Ridge"
        PasswordHintText = 
            "Please enter a password at least 7 characters long, 
            containing a number and one special character."
        NewPasswordRegularExpression =
            '@\"(?=.{7,})(?=(.*\d){1,})(?=(.*\W){1,})' 
        NewPasswordRegularExpressionErrorMessage =
            "Error: Your password must be at least 7 characters long, 
            and contain at least one number and one special character." >
    </asp:changepassword>
  </div>
  </form>
</body>
</html>